package com.anlu.alspringmvc.spring.framework.webmvc.servlet;

import lombok.Data;

import java.lang.reflect.Method;
import java.util.regex.Pattern;

/**
 * @author Administrator
 */
@Data
public class ALHandlerMapping {

    /**
     *URL
     */
    private Pattern pattern;

    /**
     * 对应的method
     */
    private Method method;

    /**
     *method对应的实例对象
     */
    private Object controller;

    public ALHandlerMapping(Pattern pattern, Method method, Object controller) {
        this.pattern = pattern;
        this.method = method;
        this.controller = controller;
    }


}
